package com.mason.dao;

import com.mason.model.UserDomain;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author yunfei.shang
 * @title
 * @date 2018/05/24 11:19
 * @descreption
 */
public interface UserDao {
    List<UserDomain> selectByPrimaryMap(Map mapKey);

    UserDomain selectById(@Param("id") Integer id);

    int insert(UserDomain record);

    List<UserDomain> selectUsers();

    int update(UserDomain user);

    int updateByName(UserDomain user);

    int updateByIds(@Param("idList") List<Integer> idList);
}